import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import request from '@/utils/request'
import 'vant/lib/index.css';
import VConsole from 'vconsole';
import customComponents from './components/index'
import { NavBar, Grid, GridItem, Search, Col, Row, Icon, Popup, Field, Form, Picker, Sticky, Cell, CellGroup, List, 
  Button, Calendar, Empty, Checkbox, CheckboxGroup, Tab, Tabs, Toast, Dialog, Divider, AddressList, ActionSheet, SwipeCell, 
  Card, Image, Uploader, Loading, ImagePreview,RadioGroup, Radio
} from 'vant';
// import '@/api/app'
import cordova from '@/api/cordova';
console.log('cordova', cordova);
Vue.use(NavBar);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Search);
Vue.use(Col);
Vue.use(Row);
Vue.use(Icon);
Vue.use(Popup);
Vue.use(Field);
Vue.use(Form);
Vue.use(Picker);
Vue.use(Sticky);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(List);
Vue.use(Button);
Vue.use(Calendar);
Vue.use(Empty);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Tabs);
Vue.use(Tab);
Vue.use(Toast);
Vue.use(Dialog);
Vue.use(Divider);
Vue.use(AddressList);
Vue.use(ActionSheet);
Vue.use(SwipeCell);
Vue.use(Card);
Vue.use(Image);
Vue.use(Uploader);
//Vue.use(Loading);
Vue.use(ImagePreview);
Vue.config.productionTip = false
Vue.use(customComponents)
Vue.use(Radio);
Vue.use(RadioGroup);
new VConsole();

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
